package com.ohos.connent.accountcloud.biz.modular.dp.wrapper;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.ohos.connent.accountcloud.biz.modular.dp.entity.DpEnterpriseInfo;
import com.ohos.connent.accountcloud.biz.modular.dp.result.DpEnterprisePageResult;
import com.ohos.connent.accountcloud.common.pojo.CommonWrapperInterface;

/**
 * @Author: ChenJiaHao
 * @Date: 2024/6/12 14:17
 * @Description:
 */
public class DpEnterprisePageWrapper implements CommonWrapperInterface<DpEnterpriseInfo> {

    @Override
    public JSONObject doWrap(DpEnterpriseInfo dpEnterpriseInfo) {
        return JSONUtil.parseObj(BeanUtil.copyProperties(dpEnterpriseInfo, DpEnterprisePageResult.class));
    }
}
